/** init domain config */
import './config'
import Vue from 'vue'
import antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less';
import Storage from 'vue-ls'
import App from './App'
import router from './router'
import { VueAxios } from './utils/request'
import IpcRenderer from '@/utils/ipcRenderer'
import CustomComponents from '@/components/index'
Vue.use(CustomComponents);
import config from '@/defaultSettings'
Vue.use(Storage, config.storageOptions)
// 使用antd
Vue.use(antd)

// mount axios to `Vue.$http` and `this.$http`
Vue.use(VueAxios)

// 全局注入IPC通信
Vue.use(IpcRenderer)
Vue.config.productionTip = false

// Vue.prototype.API_BASE_URL = process.env.VUE_APP_API_BASE_URL;
window._CONFIG = {};
window._CONFIG['remoteUrl'] = "https://video.usefullc.com/";
// window._CONFIG['remoteUrl'] = "http://localhost:28085/";
// console.log("11111"+process.env.VUE_APP_API_BASE_URL)
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
